home *** CD-ROM | disk | FTP | other *** search
/ PsL Monthly 1993 December / PSL Monthly Shareware CD-ROM (December 1993).iso / prgmming / dos / pascal / windex.com / WINDEX.DOC next >
Encoding:
Text File  |  1989-03-05  |  2.0 KB  |  55 lines

  1. WINDEX.DOC
  2.  
  3. 1. PROCEDURES AVAILABLE:
  4.  
  5. OpenWindow(X1,Y1,X2,Y2, {screen coordinates of border}
  6.            Foreground,
  7.        Background,  {text attributes}
  8.        Border,      {"Single", "Double", or 32..254}
  9.        Heading,     {optional window title of 'string'}
  10.        WhereSaved); {"Ram" or "Disk"}
  11.  
  12. CloseWindow;
  13.  
  14.  
  15. 2. USAGE:
  16.  
  17.    See WindTest.PAS for examples of how these procedures are used. The pro-
  18. cedure CloseWindow closes the most recently opened window and you just keep
  19. calling it until you get down to the level that you want. You can mix and
  20. match "disk" and "ram" as locations for the saved window image and the
  21. CloseWindow procedure will find it when needed. If you save to Ram the
  22. minimum amount of memory required to hold the image will be allocated on
  23. the heap and then released when CloseWindow is called; This is both fast
  24. and efficient as the heap is restored in such a way that granularity will
  25. not usually result. The slower alternative of saving to and restoring from disk uses zero heap memory.
  26.    Do not use this unit if you are using Turbo Pascal's windows directly
  27. in the same program. Problems will develop if you call a Windex function
  28. while within a window you created with the Window() procedure.
  29.  
  30.  
  31. 3. FILES IN ARCHIVE:
  32.  
  33.    Windex.PAS   - Source code for window routines.
  34.    WindTest.PAS - A demonstration of Windex usage.
  35.    Windex.DOC   - This file.
  36.  
  37.  
  38. 4. COMMENTS:
  39.  
  40.    This unit was tested ON BOTH an EGA moniter (IN CGA and EGA modes) as
  41. well as on a mono moniter. They work flawlessly. Note that screens are
  42. restored directly to video memory and that snow may result on some screens.
  43.    This code contains one fix to the original which now makes certain that
  44. the screen images can be stored either to ram or disk without causing your
  45. program t/b confused about their whereabouts.
  46.  
  47.  
  48. John Roncalio - BlueRibbon Software
  49.  
  50. 34439 Ascott Avenue    603 Cherry Street
  51. Abbotsford, B.C.    Sumas, Washington
  52. CANADA V2S 4V6        U.S.A. 98295
  53.  
  54. CIS [72377,1657]
  55.